<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:f="http://java.sun.com/jsf/core">

    <f:loadBundle basename="linguas.linguas" var="msg"/>

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>#{msg['system']}</title>
        <link href="#{facesContext.externalContext.request.contextPath}/css/default.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
        <h:form name="principal">
                <div id="topo">
                   <center><h1><h:outputText value="#{msg['system']}"/></h1></center>
           <center><rich:toolBar width="50">
                <rich:dropDownMenu>
                    <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg['cliente']}"/>
                            </h:panelGroup>
                    </f:facet>
                    <rich:menuItem  value="#{msg['novo']}" action="#{cliente.novoCliente}">
                    </rich:menuItem>
                    <rich:menuItem value="#{msg['listar']}" action="#{cliente.listarCliente}">
                    </rich:menuItem>
                </rich:dropDownMenu>

                <rich:dropDownMenu>
                    <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg['cardapio']}"/>
                            </h:panelGroup>
                    </f:facet>
                        <rich:menuItem value="#{msg['novo']}"  action="#{cardapio.novoCardapio}">
                        </rich:menuItem>

                        <rich:menuItem value="#{msg['listar']}"  action="#{cardapio.listarCardapio}">
                        </rich:menuItem>
                </rich:dropDownMenu>

                <rich:dropDownMenu>
                    <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg['funcionarios']}"/>
                            </h:panelGroup>
                    </f:facet>
                        <rich:menuItem  value="#{msg['novo']}" action="#{funcionario.novoFuncionario}">
                        </rich:menuItem>

                        <rich:menuItem value="#{msg['listar']}"  action="#{funcionario.listarFuncionarios}">
                        </rich:menuItem>
                </rich:dropDownMenu>

                <rich:dropDownMenu>
                    <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg['cargos']}"/>
                            </h:panelGroup>
                    </f:facet>
                        <rich:menuItem  value="#{msg['novo']}" action="#{cargo.novoCargo}">
                        </rich:menuItem>

                        <rich:menuItem value="#{msg['listar']}" action="#{cargo.listarCargos}">
                        </rich:menuItem>
                </rich:dropDownMenu>

                 <rich:dropDownMenu>
                    <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg['ingredientes']}"/>
                            </h:panelGroup>
                    </f:facet>
                        <rich:menuItem  value="#{msg['novo']}" action="#{ingrediente.novoIngrediente}" immediate="true">
                        </rich:menuItem>

                        <rich:menuItem  value="#{msg['listar']}" action="#{ingrediente.listarIngredientes}">
                        </rich:menuItem>
                </rich:dropDownMenu>

                <rich:dropDownMenu>
                    <f:facet name="label">
                            <h:panelGroup>
                                <h:outputText value="#{msg['promocao']}"/>
                            </h:panelGroup>
                    </f:facet>
                        <rich:menuItem  value="#{msg['novo']}" action="#{promocao.novoPromocao}">
                        </rich:menuItem>

                        <rich:menuItem  value="#{msg['listar']}" action="#{promocao.listarPromocao}">
                        </rich:menuItem>
                </rich:dropDownMenu>

                <rich:dropDownMenu>
                    <f:facet name="label">
                            <h:panelGroup>
                                    <h:outputText value="#{msg['eventos']}"/>
                            </h:panelGroup>
                    </f:facet>
                        <rich:menuItem  value="#{msg['novo']}" action="#{evento.novoEvento}">
                        </rich:menuItem>

                        <rich:menuItem  value="#{msg['listar']}" action="#{evento.listarEventos}">
                        </rich:menuItem>
                </rich:dropDownMenu>
           </rich:toolBar></center>
            </div>
            </h:form>
        <h:form>
            <div id="conteudo">
                   <ui:insert name="conteudo"></ui:insert>
            </div>
        </h:form>
        <h:form>

            <div id="rodape">
            <h:commandLink value="PT" action = "a"/>
            <a/>
            <h:commandLink value="EN" action = "a"/>
            </div>

        </h:form>
    </body>
</html>
